package com.wmx.aspect;


import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class UserAspect {
    public Log log= LogFactory.getLog(UserAspect.class);

    @Before("execution(* com.wmx.service.impl.IUserService.*(..))")
    public void userLogAspect(){
        log.info("在执行UserService时候执行");
    }
}
